﻿var _continueProcessing = false;
var _saveDelegate;

function ActivateProcessing() {
    ShowProcessingCursor();
    ShowProcessing();
}

function SaveClick() {

    if ($status !== undefined) {
        ToggleStatuses(true);
    }

    if (window.Page_ClientValidate !== undefined && !Page_ClientValidate()) {
        if (ShowValidationErrors !== undefined) {
            ShowValidationErrors();
        }
    }
    else {
        ActivateProcessing();
        if (_saveDelegate !== undefined) {
            _saveDelegate();
        }
        ClearSaveRequired();
    }
}